#!/bin/bash

. /opt/venv/bin/activate
cd /data/www/ttplus_adtrick

if [ -n "$PTYPE" ] && [ "$PTYPE" = "proxy" ]; then
    /opt/venv/bin/python run.py proxy
else
    /opt/venv/bin/python run.py work
fi